package com.wjj.common.mybatis.core.generator;

import cn.hutool.core.util.IdUtil;
import com.mybatisflex.core.keygen.IKeyGenerator;

/**
 * @author wujunjie
 * @version 1.0
 * @date 2025/08/13 - 10:23
 */
public class SnowFlakeIdGenerator implements IKeyGenerator {
    @Override
    public Object generate(Object entity, String keyColumn) {
        return IdUtil.getSnowflakeNextId();
    }
}
